package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author wph
 * @since 2020-05-29
 */
@Data
public class ApiShopOrderAddDto {

    /**
     * 买家附言
     */
    @ApiModelProperty(value = "买家附言", dataType = "String", required = false)
    private String buyerMessage;
    /**
     * 订单类型: 0送货上门 1:自提
     */
    @NotNull(message = "订单类型: 0送货上门 1:自提不能为空")
    @ApiModelProperty(value = "订单类型: 0送货上门 1:自提", dataType = "String", required = true)
    @Min(value = 0, message = "订单类型只能是:(0送货上门 1:自提)")
    @Max(value = 1, message = "订单类型只能是:(0送货上门 1:自提)")
    private Integer orderFrom;

    /**
     * 配送订单地址ID
     */

    @ApiModelProperty(value = "配送订单地址ID", dataType = "Long", required = false)
    private Long addrId;
    /**
     * 订单优惠券id
     */
    @ApiModelProperty(value = "订单优惠券id", dataType = "Long", required = false)
    private Long couponId;

    /**
     * 订单总数量
     */
    @NotNull(message = "订单总数量不能为空")
    @ApiModelProperty(value = "订单总数量", dataType = "Integer", required = true)
    private Integer num;
    /**
     * 商品IDs
     */
    @NotNull(message = "商品IDs不能为空")
    @ApiModelProperty(value = "商品IDs", dataType = " Long", required = true)
    private Long goodId;
    /**
     * 商品SKUids
     */
    @NotNull(message = "商品SKUids不能为空")
    @ApiModelProperty(value = "商品SKUids", dataType = "Long", required = true)
    private Long skuId;


}
